home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / telecomm / sticpsrc.lzh / SOURCE.ARC / ALLOC.H < prev    next >
C/C++ Source or Header  |  1990-07-31  |  395b  |  25 lines

  1. #ifndef    NULL
  2. #define    NULL    (void *)0
  3. #endif
  4.  
  5. #ifdef    LARGEDATA
  6. #define    PTR    huge *
  7. typedef    unsigned long    asize_t;
  8. #else
  9. #define    PTR    *
  10. typedef    unsigned    asize_t;
  11. #endif
  12.  
  13. union header {
  14.     struct {
  15.         union header PTR ptr;
  16.         asize_t size;
  17.     } s;
  18.     long l;
  19. };
  20.  
  21. typedef union header HEADER;
  22. #define    NULLHDR    (HEADER *)NULL
  23.  
  24. #define    MIN_ALLOC    8192        /* minimum space we ask for at OS */
  25.